/*
 * @Author: yangrongxin
 * @Date: 2021-08-06 09:21:42
 * @LastEditors: yangrongxin
 * @LastEditTime: 2021-09-16 16:26:15
 */
import RequestDecorator, { Controller } from '../decorator';

// 存储首页相关接口
@Controller('/customer')
class Login {
  name = 'Login';
  // 注册并绑定微信信息
  @RequestDecorator.Post()
  static registerAdnBind = '/weChat/registerAndBind';

  // 获取个人中心数据
  @RequestDecorator.Post()
  static getUserIndexData = '/user/index';

  // 根据code获取当前用户的登录信息
  @RequestDecorator.Post()
  static getAuthWithCode = '/weChat/loginFromCode';

  // 获取当前的手机号码是否存在对应的登录信息
  @RequestDecorator.Post()
  static getAuthWithUserPhone = '/weChat/phoneDecode';

  // 根据code和手机号获取当前的登录信息
  @RequestDecorator.Post()
  static getAuthWithCodeAndPhone = '/weChat/loginFromCodePhone';

  // 查询当前的服务协议资源
  @RequestDecorator.Post()
  static getServiceAgrement = '/resource/textQuery';

  // 获取维度数据
  @RequestDecorator.Post()
  static getEvaluationReport = '/measureTableRecord/evaluationReport';
}

export default Login;
